const https = require("https");

var reqUrl = 'https://api.jisuapi.com/area/province?appkey=0c2ff7278f14af5a';

https.get(reqUrl,(res)=>{
    var str = '';
    res.on("data",(chunk)=>{
        str += chunk;
    })
    res.on("end",()=>{
        var obj = JSON.parse(str);
        var provinceList = obj.result;
        for(var i = 0;i<provinceList.length;i++){
            console.log(provinceList[i]['name']);
        }
    })
})